{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf320
{\fonttbl\f0\fnil\fcharset0 Menlo-Regular;}
{\colortbl;\red255\green255\blue255;\red170\green13\blue145;\red63\green110\blue116;\red92\green38\blue153;
\red100\green56\blue32;\red46\green13\blue110;\red38\green71\blue75;\red28\green0\blue207;}
\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\deftab560
\pard\tx560\pardeftab560\pardirnatural

\f0\fs22 \cf2 \CocoaLigature0 float\cf0  dY = \cf3 shooter\cf0 .\cf3 position\cf0 .\cf4 y\cf0  - tapPosition.\cf4 y\cf0 ;\
    \cf2 float\cf0  dX = \cf3 shooter\cf0 .\cf3 position\cf0 .\cf4 x\cf0  - tapPosition.\cf4 x\cf0 ;\
    \cf3 angle\cf0  = \cf5 CC_RADIANS_TO_DEGREES\cf0 (\cf6 atan2f\cf0 (dY, dX));    \
    [\cf3 shooter\cf0  \cf7 runAction\cf0 :[\cf3 CCRotateTo\cf0  \cf7 actionWithDuration\cf0 :\cf8 0.07\cf0  \cf7 angle\cf0 :-\cf3 angle\cf0 -\cf8 49\cf0 ]];\
    \
    \cf2 float\cf0  slope=dY/dX;\
    \cf2 float\cf0  x=\cf8 320\cf0 /slope;\
    [\cf3 shoot\cf0  \cf7 runAction\cf0 :[\cf3 CCMoveTo\cf0  \cf7 actionWithDuration\cf0 :\cf8 1\cf0  \cf7 position\cf0 :\cf6 CGPointMake\cf0 (x, \cf8 320\cf0 )]];}